package com.project.service.imp;

import com.project.bean.BuyBean;
import com.project.mapper.IBuyDetailMapper;
import com.project.mapper.IBuyMapper;
import com.project.mapper.ILogMapper;
import com.project.service.IBuyDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
@Transactional
public class BuydetailService implements IBuyDetailService {
    @Autowired
    private IBuyDetailMapper buyDetailMapper;

    @Override
    public void add(Integer buyOrderId, List<BuyBean> buyList) {
        buyDetailMapper.add(buyOrderId, buyList);
    }
}
